<template>
	<view class="pageBox" v-if="flag">
		<view class="mask"></view>
		<view class="trealy">
			<view class="title">
				用户协议和隐私政策
			</view>
			<view class="content">
				请你务必审慎阅读、充分理解"用户协议"和隐私政策各条款，你可阅读<text @click="toPage(0,'/pages/service-agreement/index')">用户协议</text>和<text @click="toPage(0,'/pages/service-agreement/index')">隐私政策</text>了解详细信息。如你同意，请点击“同意”开始接受我们的服务。
			</view>
			<view class="btnBox">
				<view class="btn" @click="close">暂不使用</view>
				<view class="btn" @click="accept">同意</view>
			</view>
		</view>
	</view>
	
	
</template>

<script>
	export default{
		data(){
			return{
				flag:false
			}
		},
		methods:{
			open(){
				this.flag=true;
			},
			close(){
				this.flag=false;
			},
			accept(){
				this.$emit("acceptClick",{
					flag:true
				})
				this.close();
			}
		}
	}
</script>

<style lang="scss">
	@import "./service-agreement.scss";
</style>

